package com.ruoyi.project.system.file.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【请填写功能名称】对象 sys_file
 * 
 * @author ruoyi
 * @date 2022-07-21
 */
@Data
public class File extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 附件名称 */
    @Excel(name = "附件名称")
    private String name;

    /** 附件格式 */
    @Excel(name = "附件格式")
    private String type;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long size;

    /** 附件链接 */
    @Excel(name = "附件链接")
    private String url;

    /** 附件物理地址 */
    @Excel(name = "附件物理地址")
    private String path;

    /** 分组ID */
    @Excel(name = "分组ID")
    private String pid;

    /** 对应字段名 */
    @Excel(name = "对应字段名")
    private String columns;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private String createUser;

    /** 静态目录 */
    private String staticPath;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setSize(Long size)
    {
        this.size = size;
    }

    public Long getSize()
    {
        return size;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setPath(String path)
    {
        this.path = path;
    }

    public String getPath()
    {
        return path;
    }
    public void setPid(String pid)
    {
        this.pid = pid;
    }

    public String getPid()
    {
        return pid;
    }
    public void setColumns(String columns)
    {
        this.columns = columns;
    }

    public String getColumns()
    {
        return columns;
    }
    public void setCreateUser(String createUser)
    {
        this.createUser = createUser;
    }

    public String getCreateUser()
    {
        return createUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("size", getSize())
            .append("url", getUrl())
            .append("path", getPath())
            .append("pid", getPid())
            .append("columns", getColumns())
            .append("createTime", getCreateTime())
            .append("createUser", getCreateUser())
            .toString();
    }

    private String dataScope;

    public String getDataScope() {
        return dataScope;
    }

    public void setDataScope(String dataScope) {
        this.dataScope = dataScope;
    }
}
